package com.whut.util;

import org.springframework.util.DigestUtils;

public class MD5Encoder {
    private static final String SLOT = "gkd";

    public static String getMD5(String originPwd){
        String password1 = DigestUtils.md5DigestAsHex(originPwd.getBytes());
        String password2 = password1 + SLOT;
        String password3 = DigestUtils.md5DigestAsHex(password2.getBytes());

        return  password3;
    }
}
